using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN HocKyService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: HocKyService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class HocKyService : IHocKyService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: HocKy_ID</para>
		/// <para>Output: HocKyEntity</para>
		///</summary>
		public HocKyEntity SelectOne(int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.SelectOne(HocKy_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaHocKy</para>
		/// <para>Input: MaHocKy</para>
		/// <para>Output: HocKyEntity</para>
		///</summary>
		public HocKyEntity SelectOneByMaHocKy(string MaHocKy){
			HocKyDAO dao = new HocKyDAO();
			return dao.SelectOneByMaHocKy(MaHocKy);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HocKyEntity</para>
		///</summary>
		public List<HocKyEntity> SelectAll(){
			HocKyDAO dao = new HocKyDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			HocKyDAO dao = new HocKyDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HocKyEntity</para>
		///</summary>
		public List<HocKyEntity> SelectAllFilter(string strFilter){
			HocKyDAO dao = new HocKyDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			HocKyDAO dao = new HocKyDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HocKyEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(HocKyEntity o){
			HocKyDAO dao = new HocKyDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HocKyEntity</para>
		/// <para>Output: HocKyEntity</para>
		///</summary>
		public HocKyEntity SaveRet(HocKyEntity o){
			HocKyDAO dao = new HocKyDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of HocKyEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<HocKyEntity> list){
			HocKyDAO dao = new HocKyDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of HocKyEntity</para>
		/// <para>Output: List of HocKyEntity</para>
		///</summary>
		public List<HocKyEntity> SaveListRet(List<HocKyEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: HocKyEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(HocKyEntity o){
			HocKyDAO dao = new HocKyDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of HocKyEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<HocKyEntity> list){
			HocKyDAO dao = new HocKyDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaHocKy</para>
		/// <para>Input: NewMaHocKy,HocKy_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaHocKy(string NewMaHocKy,int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.UpdateMaHocKy(NewMaHocKy,HocKy_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenHocKy</para>
		/// <para>Input: NewTenHocKy,HocKy_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenHocKy(string NewTenHocKy,int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.UpdateTenHocKy(NewTenHocKy,HocKy_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTa</para>
		/// <para>Input: NewMoTa,HocKy_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTa(string NewMoTa,int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.UpdateMoTa(NewMoTa,HocKy_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateThuTu</para>
		/// <para>Input: NewThuTu,HocKy_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateThuTu(int NewThuTu,int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.UpdateThuTu(NewThuTu,HocKy_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateHocKyHienTai</para>
		/// <para>Input: NewHocKyHienTai,HocKy_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateHocKyHienTai(bool NewHocKyHienTai,int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.UpdateHocKyHienTai(NewHocKyHienTai,HocKy_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: HocKyEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(HocKyEntity o){
			HocKyDAO dao = new HocKyDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: HocKy_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int HocKy_ID){
			HocKyDAO dao = new HocKyDAO();
			return dao.DeleteByID(HocKy_ID);
		}
		#endregion

		#region Select,delete by HocKy_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END HocKyWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

